package com.hxzy.service.impl;

import com.hxzy.entity.HouseSize;
import com.hxzy.mapper.HouseSizeMapper;
import com.hxzy.service.HouseSizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 类说明
 *
 * @author admin
 * @date 2021-09-15
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class HouseSizeServiceImpl extends CommonServiceImpl<HouseSize,Integer> implements HouseSizeService {

    private HouseSizeMapper houseSizeMapper;

    @Autowired
    public void setHouseSizeMapper(HouseSizeMapper houseSizeMapper) {
        this.houseSizeMapper = houseSizeMapper;
        super.setMyBatisBaseDao(houseSizeMapper);
    }


    @Override
    public List<HouseSize> searchAll() {
        return this.houseSizeMapper.searchAll();
    }
}
